package com.sky.mapper;

import com.github.pagehelper.Page;
import com.sky.anno.Tablelnject;
import com.sky.dto.PasswordEditDTO;
import com.sky.entity.Employee;
import com.sky.enumeration.OperationType;
import com.sky.vo.EmployeeVo;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface EmployeeMapper {
    /**
     * 根据用户名查询员工
     * @param username
     * @return
     */
    Employee getByUsername(String username);

    @Tablelnject(OperationType.INSERT)
    void add(Employee employee);

    Page page(String name);

    Employee findById(Long id);

    @Tablelnject(OperationType.UPDATE)
    void update(Employee employee);

    void upPassword(Employee employee);
}
